<!DOCTYPE html>
<html>
    <head lang="en">
        <meta charset="UTF-8">
        <title></title>
        <style>
        
        </style>

    </head>
    <body>
        <script type="text/javascript">
        var patt1=new RegExp("e");
        // test() 方法检索字符串中的指定值。返回值是 true 或 false。
        document.write(patt1.test("the best things in life are free"));
        </script>

    </body>
</html>